package com.qqtech.qquan.sms.model;


import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import com.qqtech.core.frame.model.BaseDomain;

@SuppressWarnings("serial")
public class SmsBase extends BaseDomain{

	//columns START
    /** 接收人手机号码,群发则用分号";"隔开 */
	private java.lang.String phone;
    /** 短信模板 */
	private java.lang.String template;
    /** 短信模板id */
	private java.lang.Integer templateId;
    /** 模板参数，json格式 */
	private java.lang.String templateParam;
    /** 短信签名 */
	private java.lang.String signName;
    /** 短信类型:1-验证码;2-通知 */
	private java.lang.Integer type;
    /** 公共回传参数，在“消息返回”中会透传回该参数 */
	private java.lang.String extend;
    /** 返回状态,是否成功:1-是;2-否 */
	private java.lang.Integer returnStatus;
    /** 返回内容 */
	private java.lang.String returnMsg;
    /** 短信厂商-厂商模板，多对多关系id */
	private java.lang.Integer sptId;
    /** 发送的厂商名称 */
	private java.lang.String spName;
	//columns END
	public SmsBase(){
	}

	public SmsBase( java.lang.Integer id ){
		this.id = id;
	}

	public void setPhone(java.lang.String phone) {
		this.phone = phone;
	}

	public java.lang.String getPhone() {
		return this.phone;
	}
	
	public void setTemplate(java.lang.String template) {
		this.template = template;
	}

	public java.lang.String getTemplate() {
		return this.template;
	}
	
	public void setTemplateId(java.lang.Integer templateId) {
		this.templateId = templateId;
	}

	public java.lang.Integer getTemplateId() {
		return this.templateId;
	}
	
	public void setTemplateParam(java.lang.String templateParam) {
		this.templateParam = templateParam;
	}

	public java.lang.String getTemplateParam() {
		return this.templateParam;
	}
	
	public void setSignName(java.lang.String signName) {
		this.signName = signName;
	}

	public java.lang.String getSignName() {
		return this.signName;
	}
	
	public void setType(java.lang.Integer type) {
		this.type = type;
	}

	public java.lang.Integer getType() {
		return this.type;
	}
	
	public void setExtend(java.lang.String extend) {
		this.extend = extend;
	}

	public java.lang.String getExtend() {
		return this.extend;
	}
	
	public void setReturnStatus(java.lang.Integer returnStatus) {
		this.returnStatus = returnStatus;
	}

	public java.lang.Integer getReturnStatus() {
		return this.returnStatus;
	}
	
	public void setReturnMsg(java.lang.String returnMsg) {
		this.returnMsg = returnMsg;
	}

	public java.lang.String getReturnMsg() {
		return this.returnMsg;
	}
	
	public void setSptId(java.lang.Integer sptId) {
		this.sptId = sptId;
	}

	public java.lang.Integer getSptId() {
		return this.sptId;
	}
	
	public void setSpName(java.lang.String spName) {
		this.spName = spName;
	}

	public java.lang.String getSpName() {
		return this.spName;
	}
	

	@Override
	public String toString() {
		return ToStringBuilder.reflectionToString(this,
				ToStringStyle.MULTI_LINE_STYLE);
	}
}

